home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
itrns211.zip
/
INSTALL.PC
< prev
next >
Wrap
Text File
|
1991-12-14
|
7KB
|
167 lines
# Installation Instructions for the itrans package, version 2.0
# Instructions For IBM-PC Compatible Systems.
# $Header: e:/itrans/rcs/install.pc 1.2 91/12/14 16:14:28 avinash Exp $
0: BE SURE TO UNPACK THIS PACKAGE SO THAT THE DIRECTORIES ARE
CREATED---NORMALLY THE unARCHIVERS JUST DUMP ALL FILES TO CURRENT
DIRECTORY.
From a ZIP archive, use the "-d" option.
From a ZOO archive, use the "e//" option.
Thus, use one of these commands:
E:ITRANS> unzip -d itrans.zip
or
E:ITRANS> zoo e// itrans.zoo
1: If required, make and install all the programs.
Make may not be necessary since the executable is provided with
this package --- just install (copy) the executable to the BIN
directory.
To compile the program, change directory to "SRC", and
edit the Makefile as required, run make first, then install the files.
Note that a makefile for the Turbo C 2.0 compiler is provided; some
hints have been provided in the makefile to use Microsoft C Compiler.
E:\ITRANS\DOC> make
E:\ITRANS\DOC> make install
Your compiler MUST be an ANSI-C compiler (to some extent at least:
new style function declarations, and function prototypes.)
If the make in the src directory fails (due to a non-ansi compiler),
you will need to re-edit the makefile (in some cases, even the sources)
to get it to compile.
There is a program provided, called "deansify", make that program
and use it to deansify the sources, and then try to compile them again.
To deansify a source file called xxx.c, use these commands:
E:\ITRANS\DOC> make deansify.exe
E:\ITRANS\DOC> deansify.exe < xxx.c > tmpxx
E:\ITRANS\DOC> delete xxx.c
E:\ITRANS\DOC> rename tmpxx xxx.c
And so on, for all the sources. See the file "dodeans" to get the
list of files to be de-ansified (dodeans is a UNIX Shell Command File).
2: Set up the environment variables required.
The environment variable ITRANSPATH must be set to the directory
where the files *.ifm, *.afm, *.tfm reside.
In my case, I have this line in my autoexec.bat:
SET ITRANSPATH=E:\ITRANS\LIB
See the file named "shenv" in the lib directory, for all the
variables that need to be set.
Edit the file bin\prips.bat, and set the directory path names there
to correct values.
Add the itrans bin path to your PATH environment variable, so that the
commands "itrans" and "prips" can be found.
*** If you intend to use itrans for directly producing PostScript
output, you are all set at this point.
Example usage:
Assuming your input file is named hindi.ips, the command to print
it would be:
# cd to the doc directory
E:\ITRANS\DOC> itrans -P -i hindi.ips -o hindi.ps
E:\ITRANS\DOC> copy ..\lib\devnac.ps + ..\lib\itrans.pro + hindi.ps out.ps
# above creates a new file called out.ps, which can then be sent
# to a PostScript printer, or to a PostScript previewer.
Instead of specifying all the three files to cat, you may use the
prips command---is present in the bin directory of the itrans
package. (It is a batch file---you will have to edit it to set the
correct directory path).
In that case, the commands are simplified to:
E:\ITRANS\DOC> itrans -P -i hindi.ips -o hindi.ps
E:\ITRANS\DOC> prips hindi.ps
The user manual document (idoc.itx) is written in TeX, but, a
PostScript file is also provided (idoc.ps).
Print out the PostScript file directly if you do not wish go thru
setting up all the files needed for a TeX setup.
(If present, the file is in the doc directory. Normally the .ps files
are NOT present, they are available in a separate package. You will
find the printer ready documentation package in the same place where you
found this package.)
The transliteration map for devanagari is again in TeX (devn.itx),
the PostScript file is (devn.ps).
The transliteration map for tamil is in TeX (tamil.itx),
the PostScript file is (tamil.ps).
*** To use the system with the TeX language, you need to setup the files
and fonts so that TeX/LaTeX and dvips can locate them.
The following steps are necessary.
3:
The files mentioned in this section all reside in the lib directory
(or, in the TFMDIR directory, if set differently in the Makefile),
of this itrans package.
For devanagari support, add the following lines to the system file
psfonts.map:
---stuff below this line---
dnh DevnacPlain <devnac.ps
dnho Devnagari-BoldOblique <devnac.ps "/DevnacPlain .167 SlantFont"
dnhrc Devnagari-BoldNarrow <devnac.ps "/DevnacPlain .82 ExtendFont"
dnhre Devnagari-BoldExpanded <devnac.ps "/DevnacPlain 1.2 ExtendFont"
---stuff above this line---
psfonts.map will reside in some system area, you will have to search
around for it (TeX system areas).
4: If you installed the file "devnac.ps" in some non-standard place
(with respect to your system's dvips installation),
add the pathname to the line starting with "H" in the file dvips.ini
(Create the file dvips.ini in the dvips system area,
see man page on dvips and its user manual, and the files readme.pc and
config.ps in your dvips installation on the PC.)
If devnac.ps resides in E:\ITRANS\LIB\DEVNAC.PS, add this line to
dvips.ini:
---stuff below this line---
# provide all system path names first, then the path name for devnac.ps file
H D:\EMTEX\MACROS;E:\ITRANS\LIB
---stuff above this line---
5: Install the .tfm files in the standard place, or, if that is not
desirable, install it any directory, just append the directory pathname
to the environment variable TEXFONTS.
For Tamil support, install the .mf files and the .pk files also, in
the standard places.
Note that you must have the dvips version that handles PostScript fonts.
(Tomas Rokicki's version 5.41 or newer, see the FAQ in
comp.text.tex for more information.)
*** You are all set up now for both TeX/LaTeX and PostScript output
generation.
6: Print out the document idoc.itx, it is the user's manual
for the "itrans" program.
idoc.itx contains transliterated hindi/tamil text, so it has to be
converted to a normal TeX file.
Run these commands:
E:\ITRANS\DOC> itrans -i idoc.itx -o idoc.tex
E:\ITRANS\DOC> latex idoc
E:\ITRANS\DOC> dvips idoc > out.ps
# above creates PostScript file called out.ps, which can be sent to
# a postscript printer or previewer.
Do the same for the reference manuals, devn.itx and tamil.itx.
7: Check out the sample data, print out the sample files provided.
Use the above examples given to print the files.
Files ending in .itx are TeX/LaTeX files, and files ending in .ips are
PostScript files meant for the dumb interface of itrans.
Follow the appropriate command sequences mentioned in this document to
print out the files.
8: If you need to use the Frans Velthuis's Devnag font, you have to
get it by anonymous FTP---see details in the file dvng.itx.
Once you get it, install the TFM and PK files as would for any
other Metafont font on your system.